package model;

import java.sql.Timestamp;
import java.util.Date;

/**
 * Created with IntelliJ IDEA
 * Description:实体Employee类(包括id、name、hireDate、salary4个属性)
 * User：chenshu
 * Date：2023-12-19
 * Time：22:04
 */
public class Employee {
    private int id;
    private String name;
    private Date hireDate;
    private int salary;

    public int getId() {
        System.out.println("调用了get方法");
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", hireDate=" + hireDate +
                ", salary=" + salary +
                '}';
    }
}
